package com.cn.lck.dtos;

import com.cn.lck.enums.CommonTableEnum;

import java.util.List;

/***
 * @Description: 封装分页、操作模式、操作对象、查询条件、修改字段等参数信息
 * @Author: lck
 * @Date: 2020.10.22 14:55
 **/
public class CommonDto {

    private Integer size;
    private Integer page;
    // 操作模式add 新增，edit编辑
    private String model;
    // 操作的对象
    private CommonTableEnum name;
    // 查询的条件
    private List<CommonWhereDto> where;
    // 修改的字段
    private List<CommonWhereDto> sets;

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public CommonTableEnum getName() {
        return name;
    }

    public void setName(CommonTableEnum name) {
        this.name = name;
    }

    public List<CommonWhereDto> getWhere() {
        return where;
    }

    public void setWhere(List<CommonWhereDto> where) {
        this.where = where;
    }

    public List<CommonWhereDto> getSets() {
        return sets;
    }

    public void setSets(List<CommonWhereDto> sets) {
        this.sets = sets;
    }
}
